import type { CarbonAssetsInfo } from '@/types'

const controller = getAjaxBaseUrl('/carbonAssets', '/energy')

/** 碳资产信息查询 */
export function queryCarbonAssets(params: {
  pointId: number
  dataTime: number
  protocolCode: string
}) {
  return get<CarbonAssetsInfo>(`${controller}/details`, params)
}

/** 保存CCER量 */
export function saveCcerNum(params: {
  dataTime: number
  ccerNum: number
}) {
  return get(`${controller}/save`, params)
}
